<?php
	$username=$_REQUEST['username'];
	$message=$_REQUEST['message'];
	$sex=$_REQUEST['sex'];
	$imgurl=$_REQUEST['imgurl'];
	require 'db_conn.php';
	$sql="INSERT into t_message(username,sex,message,imgurl) VALUES('$username','$sex','$message','$imgurl')";
	$rs=$db->query($sql);
	if($rs){
		Header('Location:index.php');
	};
?>